import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

//  go my admin app 的路由菜单

const goMyAdminAppRouter: AppRouteModule = {
  path: '/gma',
  name: 'gma',
  component: LAYOUT,
  redirect: '/gma/servers',
  meta: {
    hideChildrenInMenu:true,
    orderNo: 100,
    icon: 'ion:server',
    title: t('routes.goMyAdmin.gma.title'),
  },
  children: [
    {
      path: 'servers',
      name: 'servers',
      meta: {
        title: t('routes.goMyAdmin.gma.servers.title'),
      },
      component: () => import('@/views/go-my-admin/GmaServers.vue'),
    },
    {
      path: 'workspace',
      name: 'workspace',
      meta: {
        title: t('routes.goMyAdmin.gma.workspace.title'),
      },
      component: () => import('@/views/go-my-admin/Workspace.vue'),
    },
  ],
};

export default goMyAdminAppRouter;
